﻿/**
*放款输入
*/
Chenxin.UI.FKInputForm = Chenxin.extend(Chenxin.UI.FormCommon,{
    actionUrl:'/service/logic/DealLoan.ashx',
    id:'FKInput',
    renderTo:'divFKInput',
    winCls:'',
    jqmWidth:550,
    defBBtn:true,
    createForm: function() {
        return Chenxin.FormCommon.FKInputForm(this.id);
    },
//    initFormValidator:function(){
//        //收件收据日期
//        $("#VoucherToBankDate").formValidator({
//            validatorgroup: this.id,
//            onshow: "请输入收件收据日期！",
//            onfocus: "收件收据日期为必输项",
//            oncorrect: " "
//        }).inputValidator({ 
//            min: 1,
//            empty: {
//                leftempty: false,
//                rightempty: false,
//                emptyerror: "收件收据日期不能为空！"
//            },
//            onerror: "收件收据日期不能为空！"
//        });
//        //银行放款日期
//        $("#BankCompleteDate").formValidator({
//            validatorgroup: this.id,
//            onshow: "请输入银行放款日期！",
//            onfocus: "银行放款日期为必输项",
//            oncorrect: " "
//        }).inputValidator({ 
//            min: 1,
//            empty: {
//                leftempty: false,
//                rightempty: false,
//                emptyerror: "银行放款日期不能为空！"
//            },
//            onerror: "银行放款日期不能为空！"
//        });
//        //放款材料回公司日期
//        $("#CompleteLoanDate").formValidator({
//            validatorgroup: this.id,
//            onshow: "请输入放款材料回公司日期！",
//            onfocus: "放款材料回公司日期为必输项",
//            oncorrect: " "
//        }).inputValidator({ 
//            min: 1,
//            empty: {
//                leftempty: false,
//                rightempty: false,
//                emptyerror: "放款材料回公司日期不能为空！"
//            },
//            onerror: "放款材料回公司日期不能为空！"
//        });
//        //抵押证送银行日期
//        $("#CertificateDate").formValidator({
//            validatorgroup: this.id,
//            onshow: "请输入抵押证送银行日期！",
//            onfocus: "抵押证送银行日期为必输项",
//            oncorrect: " "
//        }).inputValidator({ 
//            min: 1,
//            empty: {
//                leftempty: false,
//                rightempty: false,
//                emptyerror: "抵押证送银行日期不能为空！"
//            },
//            onerror: "抵押证送银行日期不能为空！"
//        });
//    },
    initEvent: function() {
    },
    saveSucc: function() {
        this.reloadGrid();
    },
    initComponent: function() {
        Chenxin.UI.FKInputForm.superclass.initComponent.call(this);
    }
});

Chenxin.FormCommon.FKInputForm=function(formID){
//	return '<table class="tbl_f"><tr><th style="width:120px; height:30px;">收件收据日期：</th><td><input style="width:66px;" name="VoucherToBankDate" class="inputbox_n fl" id="VoucherToBankDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /><div id="VoucherToBankDateTip" style="float: left; margin-left: 5px; width: 150px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div></td></tr><tr><th>银行放款日期：</th><td><input style="width:66px;" name="BankCompleteDate" class="inputbox_n fl" id="BankCompleteDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /><div id="BankCompleteDateTip" style="float: left; margin-left: 5px; width: 150px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div></td></tr><tr><th>放款材料回公司日期：</th><td><input style="width:66px;" name="CompleteLoanDate" class="inputbox_n fl" id="CompleteLoanDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /><div id="CompleteLoanDateTip" style="float: left; margin-left: 5px; width: 160px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div></td></tr><tr><th>抵押证送银行日期：</th><td><input style="width:66px;" name="CertificateDate" class="inputbox_n fl" id="CertificateDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /><div id="CertificateDateTip" style="float: left; margin-left: 5px; width: 150px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div></td></tr><tr><th>备注：</th><td><textarea name="FKRemark" class="textarea_n" cols="80" rows="10" class="textarea_n" style=" float:left; width: 470px; height: 100px; padding:5px;"></textarea></td></tr><tr><td colspan="2" ><input type="hidden"  name="RecordId" /></td></tr></table>';
    return '<table class="tbl_f"><tr><th style="width:120px; ">主贷人：</th><td><input type="text" id="CustomerName" name="CustomerName" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td><th style="width:100px;">受理银行：</th><td><input type="text" id="ReceiveBank" name="ReceiveBank" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td></tr><tr><th>公积金贷款金额：</th><td><input type="text" id="GJJmoney" name="GJJmoney" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td><th>公积金贷款年限：</th><td><input type="text" id="GJJyear" name="GJJyear" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td></tr><tr><th>商业贷款金额：</th><td><input type="text" id="SYMoney" name="SYMoney" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td><th>商业贷款年限：</th><td><input type="text" id="SYYear" name="SYYear" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td></tr><tr><th>代理费：</th><td><input type="text" id="AgencyFee" name="AgencyFee" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td><th>评估费：</th><td><input type="text" id="EvaluateFee" name="EvaluateFee" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td></tr><tr><th>收件收据日期：</th><td><input style="width:66px;" name="VoucherToBankDate" class="inputbox_n fl" id="VoucherToBankDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /></td><th>银行放款日期：</th><td><input style="width:66px;" name="BankCompleteDate" class="inputbox_n fl" id="BankCompleteDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /></td></tr><tr><th>放款材料回公司日期：</th><td><input style="width:66px;" name="CompleteLoanDate" class="inputbox_n fl" id="CompleteLoanDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /></td><th>抵押证送银行日期：</th><td><input style="width:66px;" name="CertificateDate" class="inputbox_n fl" id="CertificateDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /></td></tr><tr><th>地址：</th><td colspan="3"><input type="text" id="Address"  name="Address" class="inputbox_n fl" style="width:405px" readonly="readonly"/></td></tr><tr><th>备注：</th><td colspan="3"><textarea name="FKRemark" class="textarea_n" cols="80" rows="10" class="textarea_n" style=" float:left; width: 400px; height: 45px; padding:5px;"></textarea></td></tr><tr><td colspan="2" ><input type="hidden"  name="RecordId" /></td></tr></table>';
};